﻿<%@ Page Title="" Language="C#" MasterPageFile="~/pages/master/WebForm.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="BF.Web.pages.BaseSystem.UserManagement.ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">
        function DoClose() {
            parent.Pages.remove(parent.Pages.getActiveTab());
            return false;
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="1" cellspacing="1" width="100%">
        <tr>
            <th style="width: 12%">
                用户名：
            </th>
            <td>
                <asp:Label runat="server" ID="userName" />
            </td>
        </tr>
        <tr>
            <th style="width: 12%">
                原始密码：
            </th>
            <td>
                <asp:TextBox ID="tbxPssword" runat="server" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxPssword"
                    ErrorMessage="原始密码不能为空" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th style="width: 12%">
                新密码：
            </th>
            <td>
                <asp:TextBox ID="tbxnewpwd" runat="server" TextMode="Password" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxnewpwd"
                    ErrorMessage="新密码不能为空" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxnewpwd"
                    ErrorMessage="密码不得少于3位" ValidationExpression="\w{3,50}$" ForeColor="Red"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th style="width: 12%">
                确认密码：
            </th>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" TextMode="Password" />
                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="确认密码不能为空" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1"
                                ErrorMessage="密码不得少于3位" ValidationExpression="\w{3,50}$" ForeColor="Red"></asp:RegularExpressionValidator>--%>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="重复密码不一致"
                    ForeColor="Red" ControlToValidate="TextBox1" ControlToCompare="tbxnewpwd"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <th style="width: 12%">
            </th>
            <td style="text-align: left">
                <asp:Button ID="tbnSave" runat="server" Text="保  存" OnClick="tbnSave_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" Text="取  消" OnClientClick="return DoClose();" />
            </td>
        </tr>
    </table>
        <asp:UpdatePanel ID="Updatepanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="tbnSave" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
